package com.lfc.flowable.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lfc.flowable.domian.LeaveApply;

import java.util.Map;

public interface LeaveApplyService {

    boolean submitLeave(LeaveApply leaveApply);

    Page<LeaveApply> getLeavePage(Integer pageNum, Integer pageSize, String userId);

    void addLeaveApply(LeaveApply leaveApply);

    LeaveApply getLeaveApply(String id);

    LeaveApply getBusinessData(String taskId);

    void completeTask(String taskId, Map<String, Object> variables);

    void deleteLeaveApplyByIds(String ids);

}
